import request from '@/request';

export const fetchSubmitOrder = function <T = any, U = any>(data: T): Promise<U> {
    return request({
        method: 'post',
        url: '/order/create',
        data,
    });
};

export const fetchOrderList = function <T = any, U = any>(data: T): Promise<U> {
    return request({
        method: 'get',
        url: '/order/list',
        params: data,
    });
};
